/*
 * 版权信息：北京汉方三陆零科技有限公司</br>
 * Copyright ©2014-2015. All rights reserved.  京ICP备15000045号
 */
package com.lin.factory.shaxian;

import com.lin.factory.shaxian.peiliao.gongchang.PeiliaoGongchang;
import com.lin.factory.shaxian.peiliao.gongchang.impl.Beijing1Gongchang;
import com.lin.factory.shaxian.peiliao.gongchang.impl.Nanjing1Gongchang;
import com.lin.factory.shaxian.xiaochidian.XiaoChiDian;
import com.lin.factory.shaxian.xiaochidian.impl.Beijing1Xiaochidian;
import com.lin.factory.shaxian.xiaochidian.impl.Beijing3Xiaochidian;
import com.lin.factory.shaxian.xiaochidian.impl.Nanjing1Xiaochidian;

/****************************************************************************
 * com.lin.factory.shaxian XiaochiTest.java Created on 2016年1月8日
 * @Author: linfenliang
 * @Description:
 * @Version: 1.0
 ***************************************************************************/
public class XiaochiTest {
public static void main(String[] args) {
	//北京1小吃店做北方口味酸辣小吃
	PeiliaoGongchang gongchang = new Beijing1Gongchang();
	XiaoChiDian dian = new Beijing1Xiaochidian(gongchang);
	dian.xiadan();
	Xiaochi xc = dian.shangxiaochi();
	System.out.println("上小吃："+xc);
	dian.jiezhang();
	
	
	//北京1小吃店做南方口味酸辣小吃
	gongchang = new Nanjing1Gongchang();
	dian = new Beijing1Xiaochidian(gongchang);
	dian.xiadan();
	xc = dian.shangxiaochi();
	System.out.println("上小吃："+xc);
	dian.jiezhang();
	
	//南方1小吃店做南方口味甜小吃
	gongchang = new Nanjing1Gongchang();
	dian = new Nanjing1Xiaochidian(gongchang);
	dian.xiadan();
	xc = dian.shangxiaochi();
	System.out.println("上小吃："+xc);
	dian.jiezhang();
	
	
	//北京3小吃店只能做北方口味酸辣小吃
	dian = new Beijing3Xiaochidian();
	dian.xiadan();
	xc = dian.shangxiaochi();
	System.out.println("上小吃："+xc);
	dian.jiezhang();
}
}
